package com.krain.ddbb.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * Created by huyamin on 2016/3/10.
 */
public class RobOrderBean implements Parcelable {
    private  int order_id;
    private  String order_num;
    private String desc;
    private String server_price;
    private String server_address;
    private String distance;
    private ArrayList<String> image;
    private int status;
    private String server_time;
    private String publish_time;
    private String id;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPublish_time() {

        return publish_time;
    }

    public void setPublish_time(String publish_time) {
        this.publish_time = publish_time;
    }

    public String getServer_time() {
        return server_time;
    }

    public void setServer_time(String server_time) {
        this.server_time = server_time;
    }

    public int getOrder_id() {
        return order_id;
    }

    public void setOrder_id(int order_id) {
        this.order_id = order_id;
    }

    public String getOrder_num() {
        return order_num;
    }

    public void setOrder_num(String order_num) {
        this.order_num = order_num;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getServer_price() {
        return server_price;
    }

    public void setServer_price(String server_price) {
        this.server_price = server_price;
    }

    public String getServer_address() {
        return server_address;
    }

    public void setServer_address(String server_address) {
        this.server_address = server_address;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public ArrayList<String> getImage() {
        return image;
    }

    public void setImage(ArrayList<String> image) {
        this.image = image;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public RobOrderBean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.order_id);
        dest.writeString(this.order_num);
        dest.writeString(this.desc);
        dest.writeString(this.server_price);
        dest.writeString(this.server_address);
        dest.writeString(this.distance);
        dest.writeStringList(this.image);
        dest.writeInt(this.status);
        dest.writeString(this.server_time);
        dest.writeString(this.publish_time);
        dest.writeString(this.id);
    }

    protected RobOrderBean(Parcel in) {
        this.order_id = in.readInt();
        this.order_num = in.readString();
        this.desc = in.readString();
        this.server_price = in.readString();
        this.server_address = in.readString();
        this.distance = in.readString();
        this.image = in.createStringArrayList();
        this.status = in.readInt();
        this.server_time = in.readString();
        this.publish_time = in.readString();
        this.id = in.readString();
    }

    public static final Creator<RobOrderBean> CREATOR = new Creator<RobOrderBean>() {
        @Override
        public RobOrderBean createFromParcel(Parcel source) {
            return new RobOrderBean(source);
        }

        @Override
        public RobOrderBean[] newArray(int size) {
            return new RobOrderBean[size];
        }
    };
}
